package com.qyhl.webtv.module_microvideo.shortvideo.user.fragment;


import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoBean;

import java.util.List;

public class ShortVideoUserPresenter implements ShortVideoUserContract.ShortVideoUserPresenter {
    private ShortVideoUserContract.ShortVideoUserView mView;
    private ShortVideoUserModel mModel;

    ShortVideoUserPresenter(ShortVideoUserContract.ShortVideoUserView mView) {
        this.mView = mView;
        this.mModel = new ShortVideoUserModel(this);
    }

    @Override
    public void getUserWorks(String phone, String page, int type) {
        mModel.getUserWorks(phone, page, type);
    }

    @Override
    public void setData(List<ShortVideoBean> beanList, boolean isMore) {
        mView.setData(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
